package com.aaron.kjviewutils.flight;


import java.util.Map;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;

/**
 * 作者：Aaron on 2017/2/23 11:00
 * 邮箱：kaijin.fang@edianniu.com
 */
public interface FlightService {

    @GET("flight/city/query")
    Call<FlightBean> obtainFlights();
    @GET("flight/line/query")
    Call<FlightLineBean> obtainFlightInfo(@QueryMap Map<String, String> params);
    @GET("flight/no/query")
    Call<FlightLineBean> obtainFlightByNo(@Query("name") String flightNo);
}
